java.lang.Object | +--com.hp.openview.ib.api.jopc.JOpcObject
base class of opc objects. Supports generic behavior and attribute getting and setting.
Constructor Summary | |
protected
|
JOpcObject(int aOpcDataType) |
Method Summary | |
protected long
|
addListElement(int aAttrType) Native API description: Adds an element of the correct type to the specified list in the opcdata structure. |
java.lang.Object
|
clone() Creates and returns a copy of this object. |
protected long
|
deleteListElement(int aAttrType,
long aIndex) Native API description: Deletes an element of the specified list in the opcdata structure. |
boolean
|
equals(java.lang.Object aObj) Indicates whether some other object is "equal to" this one. |
protected void
|
finalize() as fallback, to avoid memory leak in native adapter/API layer in case of non released JOpcObjects |
protected long
|
getListLength(int aAttrType) Returns the number of elements in an embedded list of a HPOM opcdata structure. |
protected long
|
getLong(int aAttrType) Returns the value of the numeric attribute |
protected java.lang.String
|
getString(int aAttrType) Returns the desired string value. |
protected java.lang.String
|
getString(int aAttrType,
int aElmType, long aIndex) |
protected void
|
setDouble(int aAttrType,
double aAttrValue) sets the numeric float attribute |
protected void
|
setLong(int aAttrType,
long aAttrValue) Sets the numeric long attribute. |
protected void
|
setString(int aAttrType,
java.lang.String aName) Sets the desired string value. |
protected void
|
setString(int aAttrType,
java.lang.String aValue, int aElmType,
long aIndex) |
void
|
terminate() release resources in native adapter/API layer allocated while object construction (JOpcObject and derived classes). |
java.lang.String
|
toString() Returns a string representation of all get-methods including method()-name and value. |
protected void
|
type() Native API description: Returns the opcdata type in data. |
static java.lang.String
|
version() Returns the what string of the HPOM library that is used in this version. |
Constructor Detail |
protected JOpcObject(int aOpcDataType) throws JOpcException
Method Detail |
public static java.lang.String version() throws JOpcException
JOpcException
- if
native method return != OPC_ERR_OK. or if a field contains an
improper value, the exception reason is a positive value
corresponding to the JOpcApiDefinition interface identifying the
attribute name of the native API data structure.protected java.lang.String getString(int aAttrType) throws JOpcException
Native API description:
Instead of a status value, the function opcdata_get_str() returns a
pointer to the desired string value. This function can, therefore,
be used directly in another function call.
aAttrType
- attribute that is queriedJOpcException
- if
native method return != OPC_ERR_OK. or if a field contains an
improper value, the exception reason is a positive value
corresponding to the JOpcApiDefinition interface identifying the
attribute name of the native API data structure.protected void setString(int aAttrType, java.lang.String aName) throws JOpcException
aAttrType
- attribute to be setaName
- value to be setJOpcException
- if
native method return != OPC_ERR_OK. or if a field contains an
improper value, the exception reason is a positive value
corresponding to the JOpcApiDefinition interface identifying the
attribute name of the native API data structure.protected void type() throws JOpcException
JOpcException
- if
native method return != OPC_ERR_OK.
JOpcException reasons (negative values): OPC_ERR_INVALID_INPARAM: data is invalid; probably NULLor if a field contains an improper value, the exception reason is a positive value corresponding to the JOpcApiDefinition interface identifying the attribute name of the native API data structure.
protected long getLong(int aAttrType) throws JOpcException
aAttrType
- attribute that is queriedJOpcException
- if
native method return == -1.
JOpcException reasons (negative values): if the routine fails, a value of -1 is returned.
protected void setLong(int aAttrType, long aAttrValue) throws JOpcException
aAttrType
- attribute to be setaAttrValue
- value to be setJOpcException
- if
native method return != OPC_ERR_OK.
JOpcException reasons (negative values): OPC_ERR_INVALID_INPARAM: data is NULL, attribute is invalidor if a field contains an improper value, the exception reason is a positive value corresponding to the JOpcApiDefinition interface identifying the attribute name of the native API data structure.
protected void setDouble(int aAttrType, double aAttrValue) throws JOpcException
aAttrType
- attribute to be setaAttrValue
- value to be setJOpcException
- if
native method return != OPC_ERR_OK.
JOpcException reasons (negative values): OPC_ERR_INVALID_INPARAM: data is NULL, attribute is NULL, value is NULLor if a field contains an improper value, the exception reason is a positive value corresponding to the JOpcApiDefinition interface identifying the attribute name of the native API data structure.
protected java.lang.String getString(int aAttrType, int aElmType, long aIndex) throws JOpcException
protected void setString(int aAttrType, java.lang.String aValue, int aElmType, long aIndex) throws JOpcException
protected long getListLength(int aAttrType) throws JOpcException
aAttrType
- Specifies the list in the data
structure.JOpcException
- if
native method return < OPC_ERR_OK.
JOpcException reasons (negative values): OPC_ERR_INVALID_INPARAM: parameter data is invalid; probably NULL list is invalidor if a field contains an improper value, the exception reason is a positive value corresponding to the JOpcApiDefinition interface identifying the attribute name of the native API data structure.
protected long addListElement(int aAttrType) throws JOpcException
aAttrType
- Specifies the list in the data
structure.JOpcException
- if
native method return < OPC_ERR_OK.
JOpcException reasons (negative values): OPC_ERR_INVALID_INPARAM: Input parameter was not valid ( < 0 )or if a field contains an improper value, the exception reason is a positive value corresponding to the JOpcApiDefinition interface identifying the attribute name of the native API data structure.
protected long deleteListElement(int aAttrType, long aIndex) throws JOpcException
aAttrType
- Specifies the list in the data
structure.aIndex
- Specifies the element in the list.JOpcException
- if
native method return < OPC_ERR_OK.
JOpcException reasons (negative values): OPC_ERR_INVALID_INPARAM: parameter data is invalid; probably NULL list or index is invalidor if a field contains an improper value, the exception reason is a positive value corresponding to the JOpcApiDefinition interface identifying the attribute name of the native API data structure.
public void terminate()
protected void finalize()
finalize
in class
java.lang.Object
public boolean equals(java.lang.Object aObj)
equals
in class java.lang.Object
aObj
- the reference object with which to
compare.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the
object's class does not support the Cloneable interface. or if a
field contains an improper value, the exception reason is a
positive value corresponding to the JOpcApiDefinition interface
identifying the attribute name of the native API data
structure.public java.lang.String toString()
Further / detailed requirements: - method name has to start with get - method must not have a parameter - method must have return type String or Long - method must not be static
toString
in class
java.lang.Object
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.